home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Tools / Development / stunnel-4.04 / _src / src / Makefile.w32 < prev    next >
Encoding:
Makefile  |  2003-01-01  |  982 b   |  36 lines

  1. # Simple Makefile.w32 for stunnel.exe by Michal Trojnara 1998-2003
  2. #
  3. # Modified by Brian Hatch  (bri@stunnel.org)
  4.  
  5. # This makefile is only tested on the mingw compiler.  Mingw
  6. # can successfully compile both openssl and stunnel.  If you want
  7. # to use another compiler, give it a shot, and tell us how it went.
  8.  
  9. # Modify this to point to your actual openssl compile directory
  10. # (You did already compile openssl, didn't you???)
  11. SSLDIR=../openssl-0.9.7
  12.  
  13. DEFINES=-DUSE_WIN32 -DHAVE_OPENSSL
  14.  
  15. # CC=gcc
  16. CFLAGS=-g -O2 -Wall $(DEFINES) -I$(SSLDIR)/outinc
  17. LDFLAGS=-s
  18.  
  19. # LIBS=-L$(SSLDIR)/out -lssl -lcrypto -lwsock32 -lgdi32
  20.  
  21. LIBS=-L$(SSLDIR)/out -leay32 -lssl32 -lwsock32 -lgdi32
  22. OBJS=stunnel.o ssl.o client.o protocol.o sthreads.o log.o options.o sselect.o gui.o resources.o
  23.  
  24. stunnel.exe: $(OBJS)
  25.     $(CC) $(LDFLAGS) -o stunnel.exe $(OBJS) $(LIBS) -mwindows
  26.  
  27. clean:
  28.     del *.o
  29.     del stunnel.exe
  30.  
  31. resources.o: resources.rc resources.h
  32.     windres resources.rc resources.o
  33.  
  34. $(OBJS): *.h Makefile.w32
  35.  
  36.